<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head lang="en">
    <meta charset="UTF-8">
    <%@include file="style.jsp" %>
    <%@include file="script.jsp" %>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/orderlang/distributor/css/system-setting.css"/>
    <title>系统设置</title>
</head>
<body onselectstart="return false">
	<div id="container_1" style="height:100%">
		<div style="position: relative">
	        <%@include file="header.jsp" %>
    	</div>
    	<div id="content" class="clearfix">
    		<%@include file="left_menu.jsp" %>
        	<!--内容部分-->
        	<div class="right-content" style="margin:75px 20px 0 213px;">
        		<p class="brand">
	                <a>设置</a>><a class="now">系统设置</a>
	            </p>
	            
	            <div class="content">
	            <form action="${pageContext.request.contextPath}/distributorSet/insertOrUpdateDistributorSet" method="post" onsubmit="return check()">
	            	
	            	<div class="top-block">
	                    <h4>订单设置</h4>
	                    <p>
	                    	<c:if test="${distributorSet.isOrderLeastMoney == 1 }">
	                    		<s class="active"></s>
	                    	</c:if>
	                    	<c:if test="${distributorSet.isOrderLeastMoney == 0 }">
	                    		<s></s>
	                    	</c:if>
	                    	启用最低下单金额 ￥<input type="text" name="orderLeastMoney" value="${distributorSet.orderLeastMoney}"/>
	                    </p>
	                </div>
	                <div class="middle-block">
	                	<h4>流水号设置</h4>
	                	<div class="clearfix" style="margin-top: 20px;">
	                        <div class="select-box fl">
	                            <span class="fl">流水号位数</span>
	                            <div class="fl">
	                            	
	                                <input type="text" name="serialNumber1" readonly class="show" value="${distributorSet.serialNumber}" placeholder="请选择"/>
	                                <input type="text" name="serialNumber" value="${distributorSet.serialNumber}" class="hidden" readonly style="display: none;"/>
	                                <span>▼</span>
	                                <ul class="hide">
	                                    <li data-id="0">0</li>
	                                    <li data-id="1">1</li>
	                                    <li data-id="2">2</li>
	                                    <li data-id="3">3</li>
	                                </ul>
	                            </div>
	                        </div>
	                        <div class="input-box fl" style="margin-left: 40px">
	                            <span>流水开始数</span>
	                            <input type="text"  name="serialNumberStart" value="${distributorSet.serialNumberStart}"/>
	                        </div>
	                        <div class="select-box fl" style="margin-left: 40px;width: 250px;">
	                            <span class="fl">计算流水号周期</span>
	                            <div class="fl" style="width: 150px;">
	                                <input type="text" name="serialNumberPeriod1" readonly  value="${distributorSet.serialNumberPeriod}"  class="show" placeholder="请选择"/>
	                                <input type="text" name="serialNumberPeriod" value="${distributorSet.serialNumberPeriod}" class="hidden" readonly style="display: none;"/>
	                                <span style="left: 85%;">▼</span>
	                                <ul class="hide">
	                                    <li data-id="每天从起始值累计">每天从起始值累计</li>
	                                    <li data-id="每月从起始值累计">每月从起始值累计</li>
	                                    <li data-id="每年从起始值累计">每年从起始值累计</li>
	                                </ul>
	                            </div>
	                        </div>
                   		</div>
                   		<div class="clearfix" style="margin-top: 20px;">
	                        <div class="input-box fl">
	                            <span>订单号</span>
	                            <input type="text" name="orderCode" value="${distributorSet.orderCode}"/>
	                            <span>+年月日+流水号</span>
	                        </div>
	                        <div class="input-box fl">
	                            <span>出库单</span>
	                            <input type="text" name="outboundBillCode" value="${distributorSet.outboundBillCode}"/>
	                            <span>+年月日+流水号</span>
	                        </div>
	                        <div class="input-box fl">
	                            <span>发货单</span>
	                            <input type="text" name="deliveryBillCode" value="${distributorSet.deliveryBillCode}"/>
	                            <span>+年月日+流水号</span>
	                        </div>
	                    </div>
                   		<p>如框内输入DH，则订单号为DH20170804001，其他同理</p>
	                    <div class="clearfix" style="margin-top: 10px;">
	                        <div class="input-box fl">
	                            <span>退单号</span>
	                            <input type="text" name="materialRejectBillCode" value="${distributorSet.materialRejectBillCode}"/>
	                            <span>+年月日+流水号</span>
	                        </div>
	                        <div class="input-box fl">
	                            <span>支付流水号</span>
	                            <input type="text" name="payCode" value="${distributorSet.payCode}"/>
	                            <span>+年月日+流水号</span>
	                        </div>
	                        <div class="input-box fl">
	                            <span>商品编号</span>
	                            <input type="text" name="productCode" value="${distributorSet.productCode}"/>
	                            <span>+年月日+流水号</span>
	                        </div>
	                    </div>
                   		
	                </div>
	                <div class="bottom-block">
	                    <h4>订货平台开放性</h4>
	                    <p>
	                    	<c:if test="${distributorSet.isForbidProduct == 1 }">
	                    		<s class="active"></s>
	                    	</c:if>
	                    	<c:if test="${distributorSet.isForbidProduct == 0 }">
	                    		<s></s>
	                    	</c:if>
	                    	禁止所有客户查看商品<input type="text" name="forbidProduct" placeholder="填写禁止原因，显示在页面上" style="margin-left: 30px"/>
	                    </p>
	                    <p>
	                    	<c:if test="${distributorSet.isForbidOrder == 1 }">
	                    		<s class="active"></s>
	                    	</c:if>
	                    	<c:if test="${distributorSet.isForbidOrder == 0 }">
	                    		<s></s>
	                    	</c:if>
	                    	禁止所有客户订货<input type="text" name="forbidOrder" placeholder="填写禁止原因，显示在页面上" style="margin-left: 58px"/>
	                    </p>
	                </div>
	                <div class="fix-btn">
	                    <input type="submit" class="submit" value="保存"/>
	                    <input type="reset" class="reset" value="取消"/>
	                </div>
	            </form> 
	            </div>
	            
        	</div>
        	<script src="${pageContext.request.contextPath}/static/orderlang/distributor/js/system-setting.js"></script>
        	<!--内容部分结束-->
    	</div>
    	
	</div>
</body>
</html>